package com.sumainfor.pc.epc.feign.Zfeign;
import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.epc.fallback.ZfallBack.ZpcMarketFallback;
import com.sumainfor.pc.epc.fallback.ZfallBack.ZwxTenantFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;


/**微信端租客的服务
 */
@FeignClient(name = "tANGNEST-WX-TENANt", fallback =ZwxTenantFeignFallback.class)
public interface ZwxTenantFeign {
/*    *//**
     * 获得商品的名称和图标 通过商品编号集合
     * @return
     *//*
    @GetMapping("/key/ZfeignController/getTenantByTenPhone")
    JsonResult getTenantByTenPhone(@RequestParam (value="params") Map<String,Object> params);*/

    /**
     * 获取租客信息
     */
    @ResponseBody
    @PostMapping("/key/tctenTenantEva/getTenantTenPhone")
     JsonResult getTenantTenPhone(@RequestBody Map<String,Object> params);



    @ResponseBody
    @PostMapping("/key/tctenTenantEva/getTenantList")
    JsonResult getTenantList(@RequestBody Map<String,Object> params);
}
